// module.exports = {
//   presets: ["@vue/cli-plugin-babel/preset", ["@babel/preset-env", { modules: false }]],
//   plugins: [
//     [
//       "component",
//       {
//         libraryName: "element-ui",
//         styleLibraryName: "theme-chalk",
//       },
//     ],
//   ],
// };
// ie兼容设置
module.exports = {
  presets: [
    ["@babel/preset-env", { modules: false }],
    [
      "@vue/app",
      {
        targets: {
          browsers: ["ie >= 7", "safari >= 7"],
        },
        useBuiltIns: "entry",
        polyfills: ["es6.promise", "es6.symbol"],
      },
    ],
    "@vue/babel-preset-jsx",
  ],
  plugins: [
    "@babel/plugin-syntax-jsx",
    [
      "component",
      {
        libraryName: "element-ui",
        styleLibraryName: "theme-chalk",
      },
    ],
  ],
}
